<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>6 两列布局：float+bfc</title>
  <style>
    .left {
      width: 100px;
      height: 120px;
      background: green;
      color: white;
      /* 左浮动 */
      float: left;
    }

    .right {
      height: 160px;
      background: darkorange;
      color: white;
      /* 触发 BFC 机制，形成一个隔离的容器 */
      overflow: hidden;
    }
  </style>
</head>

<body>
  <div class="left">left...</div>
  <div class="right">right...</div>
</body>

</html>